The TLookupBuffer Structure
A mapper provider uses theTLookupBuffer
structure to be able to parse through the buffer passed back in thereply
parameter to theOTLookupName
function (page 4-25). When you allocate a buffer in which theOTLookupName
function places the names it has found, you must cast it as aTLookupBuffer
structure. You must make sure that the buffer you allocate is large enough to contain all the names returned by theOTLookupName
function, plus up to 3 bytes of padding for each name, plus an additional 8 bytes for each name returned. Figure 4-1 on page 4-8 shows the structure of the reply buffer.The
TLookupBuffer
structure is defined by theTLookupBuffer
data type.
struct TLookupBuffer { UInt16 fAddressLength; UInt16 fNameLength; UInt8 fAddressBuffer[1]; };Field descriptions
fAddressLength
- Specifies the size of the address specified by the
fAddressBuffer
field.fNameLength
- Specifies the size of the name that is stored in the buffer following the
fAddressBuffer
field.fAddressBuffer
- Specifies the address to which the entity whose name follows (in the buffer) is bound.